<?php
namespace app\servermessage\model;

use \app\manage\model\BaseModel;
// 商品分类模型层
class MessageContent extends BaseModel
{
	protected $name = 'message_content';
    protected $connection = 'db_config_message';
    protected $dateFormat = 'Y-m-d';
    protected $statusText = [0=>'失败', 1=>'成功'];
    protected $append = ['status_text'];

    /*public function setOrtherInfoAttr($value, $data)
    {
        return json_encode($data['orther_info']);
    }*/

    public function getOrtherInfoAttr($value, $data)
    {
        return json_decode($data['orther_info']);
    }







}